<template>
  <el-dialog title="详情" :visible.sync="dialogVisible" width="50%">
    <el-form ref="form" :model="form">
      <div class="myTitle">基本信息</div>
      <el-row :gutter="10">
        <el-col :span="8">
          <el-form-item label="售后单号">
            <div>{{ form.orderNo }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="销售单号">
            <div>{{ form.reOrderNo }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="客户名称">
            <div>{{ form.customerName }}</div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="10">
        <el-col :span="8">
          <el-form-item label="审核人">
            <div>{{ form.auditUserName }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="售后类型">
            <dict-tag :options="dict.type.ims_after_sale_handle_type" :value="form.handleType"/>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="状态">
            <dict-tag :options="dict.type.ims_after_sale_order_status" :value="form.status"/>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="10">
        <el-col :span="8">
          <el-form-item label="退款金额(元)">
            <div>{{ form.returnPrice }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="退/换货内容">
            <div>{{ form.content }}</div>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="快递公司">
            <div>{{ form.returnExpressName }}</div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="10">
        <el-col :span="8">
          <el-form-item label="快递单号">
            <div>{{ form.returnExpressNo }}</div>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogVisible=false">取 消</el-button>
    </div>
  </el-dialog>
</template>

<script>


export default {
  dicts: ['ims_after_sale_handle_type','ims_after_sale_order_status'],
  data() {
    return {
      dialogVisible: false,
      form: {}
    }
  },
  methods: {
    show(form) {
      this.dialogVisible = true
      this.resetForm('form')
      this.form = form
    }
  }
}
</script>
